<?php
function addSystem($nome,$descricao){//Recebe listagem de Personagens do usuário.

}
function buildSelectSystem(){
	$query = "SELECT system.name, system.idSystem FROM system";
	$result = mysql_query($query) or die(mysql_error());
	$numRows = mysql_num_rows($result);
	$cont = 0;
	$arr_table_result=mysql_fetch_full_result_array($result);
	if($numRows > 0){
		echo"<select name='system'>";
		while($cont<$numRows){
			$system 		= 	$arr_table_result[$cont]['name'];
			$id 			= 	$arr_table_result[$cont]['idSystem'];
			echo"<option value='$id'>$system</option>";
		$cont++;
		}
		echo"</select>";
	}else{echo "n&atilde;o existem systemas cadastrados.";}
}
?>